# -*- coding: utf-8 -*-

import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from SampleUI import *
import FileUtils

class MainWindow(QMainWindow, Ui_SampleUI):
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)

        #出事初始化UI
        self.setupUi(self)


if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MainWindow()

    # 加载样式
    style = FileUtils.readFile('SampleUI.css')
    window.setStyleSheet(style)

    window.show()
    sys.exit(app.exec_())